package com.gupao.proxy.dbroute;

import com.gupao.proxy.dbroute.db.DynamicDataSourceEntity;

public class OrderService implements IOrderService {

    private OrderDao orderDao;
    public OrderService() {
        orderDao = new OrderDao();
    }

    public void createOrder(Order order) {
        System.out.println("OrderService调用orderDao创建订单");
        System.out.println("目前的数据源是：" + DynamicDataSourceEntity.get());
        orderDao.insertOrder(order);
    }
}
